package com.elvin.platform.beans;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;

import java.io.Serializable;

/**
 * <p>
 * 设备表
 * </p>
 *
 * @author zhenchl
 * @since 2022-05-09
 */
@TableName("device")
public class Device extends Model<Device> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 产品名称
     */
    private String proTitle;
    /**
     * 组织机构ID
     */
    private Long organizeId;
    /**
     * 产品ID
     */
    private String proId;
    /**
     * masterApikey值
     */
    private String masterApikey;
    /**
     * accessKey值
     */
    private String accessKey;
    /**
     * 设备名称
     */
    private String devTitle;
    /**
     * 设备ID
     */
    private String devId;
    /**
     * 设备身份编码ID
     */
    private String imei;
    /**
     * 是否在线
     */
    private Boolean online;
    /**
     * 设备数据流字符串
     */
    private String stream;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 上下限配置
     */
    private String alarmConfig;
    /**
     * 设备编码
     */
    private String devCode;
    /**
     * 设备厂家
     */
    private String manufacturer;
    /**
     * 设备场景
     */
    private Integer devScenarios;
    /**
     * 设备类型
     */
    private String devType;
    /**
     * 设备型号
     */
    private String devNumber;
    /**
     * 重力加速度
     */
    private Double gravitational;
    /**
     * 设备量程配置
     */
    private String devRange;
    /**
     * 准确度等级
     */
    private String accuracyLevel;
    /**
     * 通讯方式
     */
    private String communicationMode;
    /**
     * 协议类型
     */
    private String protocolType;
    /**
     * 设备公共配置
     */
    private String commConfig;
    /**
     * 设备真实数据配置
     */
    private String realData;
    /**
     * 设备所属平台
     */
    private String devPlatform;
    private String report1;
    private String report2;
    private String report3;
    private String report4;
    private String location;
    private Date updateTime;
    @ApiModelProperty(hidden=true)
    @TableField(exist = false)
    @JsonIgnore
    private String ids;
    @ApiModelProperty(hidden=true)
    @TableField(exist = false)
    @JsonIgnore
    private PageVo pageVo;						//分页
    private String coordinate;
    private String mark;

    public String getCoordinate() {
      return coordinate;
    }

    public void setCoordinate(String coordinate) {
      this.coordinate = coordinate;
    }

    public String getMark() {
      return mark;
    }

    public void setMark(String mark) {
      this.mark = mark;
    }

  public String getIds() {
        return ids;
    }
    public void setIds(String ids) {
        this.ids = ids;
    }
    public PageVo getPageVo() {
        return pageVo;
    }

    public void setPageVo(PageVo pageVo) {
        this.pageVo = pageVo;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getReport1() {
        return report1;
    }

    public void setReport1(String report1) {
        this.report1 = report1;
    }

    public String getReport2() {
        return report2;
    }

    public void setReport2(String report2) {
        this.report2 = report2;
    }

    public String getReport3() {
        return report3;
    }

    public void setReport3(String report3) {
        this.report3 = report3;
    }

    public String getReport4() {
        return report4;
    }

    public void setReport4(String report4) {
        this.report4 = report4;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getProTitle() {
        return proTitle;
    }

    public void setProTitle(String proTitle) {
        this.proTitle = proTitle;
    }

    public Long getOrganizeId() {
        return organizeId;
    }

    public void setOrganizeId(Long organizeId) {
        this.organizeId = organizeId;
    }

    public String getProId() {
        return proId;
    }

    public void setProId(String proId) {
        this.proId = proId;
    }

    public String getMasterApikey() {
        return masterApikey;
    }

    public void setMasterApikey(String masterApikey) {
        this.masterApikey = masterApikey;
    }

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getDevTitle() {
        return devTitle;
    }

    public void setDevTitle(String devTitle) {
        this.devTitle = devTitle;
    }

    public String getDevId() {
        return devId;
    }

    public void setDevId(String devId) {
        this.devId = devId;
    }

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public Boolean getOnline() {
        return online;
    }

    public void setOnline(Boolean online) {
        this.online = online;
    }

    public String getStream() {
        return stream;
    }

    public void setStream(String stream) {
        this.stream = stream;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getAlarmConfig() {
        return alarmConfig;
    }

    public void setAlarmConfig(String alarmConfig) {
        this.alarmConfig = alarmConfig;
    }

    public String getDevCode() {
        return devCode;
    }

    public void setDevCode(String devCode) {
        this.devCode = devCode;
    }

    public String getManufacturer() {
        return manufacturer;
    }

    public void setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer;
    }

    public Integer getDevScenarios() {
        return devScenarios;
    }

    public void setDevScenarios(Integer devScenarios) {
        this.devScenarios = devScenarios;
    }

    public String getDevType() {
        return devType;
    }

    public void setDevType(String devType) {
        this.devType = devType;
    }

    public String getDevNumber() {
        return devNumber;
    }

    public void setDevNumber(String devNumber) {
        this.devNumber = devNumber;
    }

    public Double getGravitational() {
        return gravitational;
    }

    public void setGravitational(Double gravitational) {
        this.gravitational = gravitational;
    }

    public String getDevRange() {
        return devRange;
    }

    public void setDevRange(String devRange) {
        this.devRange = devRange;
    }

    public String getAccuracyLevel() {
        return accuracyLevel;
    }

    public void setAccuracyLevel(String accuracyLevel) {
        this.accuracyLevel = accuracyLevel;
    }

    public String getCommunicationMode() {
        return communicationMode;
    }

    public void setCommunicationMode(String communicationMode) {
        this.communicationMode = communicationMode;
    }

    public String getProtocolType() {
        return protocolType;
    }

    public void setProtocolType(String protocolType) {
        this.protocolType = protocolType;
    }

    public String getCommConfig() {
        return commConfig;
    }

    public void setCommConfig(String commConfig) {
        this.commConfig = commConfig;
    }

    public String getRealData() {
        return realData;
    }

    public void setRealData(String realData) {
        this.realData = realData;
    }

    public String getDevPlatform() {
        return devPlatform;
    }

    public void setDevPlatform(String devPlatform) {
        this.devPlatform = devPlatform;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Device{" +
                "id=" + id +
                ", proTitle='" + proTitle + '\'' +
                ", organizeId=" + organizeId +
                ", proId='" + proId + '\'' +
                ", masterApikey='" + masterApikey + '\'' +
                ", accessKey='" + accessKey + '\'' +
                ", devTitle='" + devTitle + '\'' +
                ", devId='" + devId + '\'' +
                ", imei='" + imei + '\'' +
                ", online=" + online +
                ", stream='" + stream + '\'' +
                ", createTime=" + createTime +
                ", alarmConfig='" + alarmConfig + '\'' +
                ", devCode='" + devCode + '\'' +
                ", manufacturer='" + manufacturer + '\'' +
                ", devScenarios='" + devScenarios + '\'' +
                ", devType='" + devType + '\'' +
                ", devNumber='" + devNumber + '\'' +
                ", gravitational=" + gravitational +
                ", devRange='" + devRange + '\'' +
                ", accuracyLevel='" + accuracyLevel + '\'' +
                ", communicationMode='" + communicationMode + '\'' +
                ", protocolType='" + protocolType + '\'' +
                ", commConfig='" + commConfig + '\'' +
                ", realData='" + realData + '\'' +
                ", devPlatform='" + devPlatform + '\'' +
                ", report1='" + report1 + '\'' +
                ", report2='" + report2 + '\'' +
                ", report3='" + report3 + '\'' +
                ", report4='" + report4 + '\'' +
                ", location='" + location + '\'' +
                '}';
    }
}
